//
//  XZ_SVProgressView.h
//  Project_Demo
//
//  Created by caoxiaozhu on 2018/7/18.
//  Copyright © 2018年 caoxiaozhu. All rights reserved.
//

/*SVProgress的常用设置
 + (void)setDefaultStyle:(SVProgressHUDStyle)style;                  // default is SVProgressHUDStyleLight
 + (void)setDefaultMaskType:(SVProgressHUDMaskType)maskType;         // default is SVProgressHUDMaskTypeNone
 + (void)setDefaultAnimationType:(SVProgressHUDAnimationType)type;   // default is SVProgressHUDAnimationTypeFlat
 + (void)setContainerView:(UIView*)containerView;                    // default is window level
 + (void)setMinimumSize:(CGSize)minimumSize;                         // default is CGSizeZero, can be used to avoid resizing
 + (void)setRingThickness:(CGFloat)width;                            // default is 2 pt
 + (void)setRingRadius:(CGFloat)radius;                              // default is 18 pt
 + (void)setRingNoTextRadius:(CGFloat)radius;                        // default is 24 pt
 + (void)setCornerRadius:(CGFloat)cornerRadius;                      // default is 14 pt
 + (void)setBorderColor:(nonnull UIColor*)color;                     // default is nil
 + (void)setBorderWidth:(CGFloat)width;                              // default is 0
 + (void)setFont:(UIFont*)font;                                      // default is [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline]
 + (void)setForegroundColor:(UIColor*)color;                         // default is [UIColor blackColor], only used for SVProgressHUDStyleCustom
 + (void)setBackgroundColor:(UIColor*)color;                         // default is [UIColor whiteColor], only used for SVProgressHUDStyleCustom
 + (void)setBackgroundLayerColor:(UIColor*)color;                    // default is [UIColor colorWithWhite:0 alpha:0.4], only used for SVProgressHUDMaskTypeCustom
 + (void)setImageViewSize:(CGSize)size;                              // default is 28x28 pt
 + (void)setShouldTintImages:(BOOL)shouldTintImages;                 // default is YES
 + (void)setInfoImage:(UIImage*)image;                               // default is the bundled info image provided by Freepik
 + (void)setSuccessImage:(UIImage*)image;                            // default is bundled success image from Freepik
 + (void)setErrorImage:(UIImage*)image;                              // default is bundled error image from Freepik
 + (void)setViewForExtension:(UIView*)view;                          // default is nil, only used if #define SV_APP_EXTENSIONS is set
 + (void)setGraceTimeInterval:(NSTimeInterval)interval;              // default is 0 seconds
 + (void)setMinimumDismissTimeInterval:(NSTimeInterval)interval;     // default is 5.0 seconds
 + (void)setMaximumDismissTimeInterval:(NSTimeInterval)interval;     // default is CGFLOAT_MAX
 + (void)setFadeInAnimationDuration:(NSTimeInterval)duration;        // default is 0.15 seconds
 + (void)setFadeOutAnimationDuration:(NSTimeInterval)duration;       // default is 0.15 seconds
 + (void)setMaxSupportedWindowLevel:(UIWindowLevel)windowLevel;      // default is UIWindowLevelNormal
 + (void)setHapticsEnabled:(BOOL)hapticsEnabled;                     // default is NO
 */

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,showType) {
    ShowSuccess =0,
    ShowInfo,
    ShowError,
    ShowNormal
};

@interface XZ_SVProgressView : UIView

/**
 显示透明背景
 */
+(void)showClearBac;

/**
 显示黑色半透明背景
 */
+(void)showWithBlackAlpha;

/**
 显示黑色内容框和透明背景
 */
+(void)showBlackContentWithClearBac;

/**
 显示提示语的背景框

 @param des 提示语
 @param type 弹窗种类
 */
+(void)showWithDescription:(NSString *)des showType:(showType)type;

/**
 显示GIF图片

 @param name 名称
 @param size 图片大小
 @param statusStr 底部文字内容
 */
+(void)showCustomGIFname:(NSString *)name ImageSize:(CGSize)size StatusStr:(NSString *)statusStr;

/**
 隐藏
 */
+(void)dismiss;
@end
